-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cst/cache: ubsan fix, fix highly unlikely full cache trim if free disk info is delayed, more tests #24631
cst/cache: ubsan fix, fix highly unlikely full cache trim if free disk info is delayed, more tests #24631
Conversation
Retry command for Build#60013please wait until all jobs are finished before running the slash command
|
CI test resultstest results on build#60013
test results on build#60073
|
Fixes UBSAN assertion caused by invoking a function call on uninitialized cache object. include/c++/v1/vector:1394:10: runtime error: reference binding to null pointer of type 'seastar::sharded<cloud_storage::cache>::entry'
Otherwise it ends up removing everything from the cache when disk info is not yet available.
6a51f1c
to
84312e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. seastar invoke_on will throw if the local service hasn't been created, but that happens in sharded::start where the underlying vector is built. seems like they should also do that simple check of the vector being large enough too to catch thsi UB.
Backports Required
Release Notes